# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 2009-11-15 21:12:19Z leho@kraav.com $

PortSystem          1.0

name                mediainfo
version             0.7.25
categories          multimedia
maintainers         nomaintainer

description         MediaInfo
long_description    MediaInfo supplies technical and tag information about a video or audio file

homepage            http://mediainfo.sourceforge.net
platforms           darwin
master_sites        sourceforge
distname			MediaInfo_CLI_${version}_GNU_FromSource
#parallel build seems broken :(
use_parallel_build  no
use_bzip2           yes
checksums           md5     c1a809716e16c39d88b9acace805c232 \
                    sha1    5ad249b2301a7db3ad6a466a5515492a08966852 \
                    rmd160  1ba9433c0f50397b9a4cef6125a60ef420b81457

depends_lib         port:zlib
build.cmd			sh
build.target		CLI_Compile.sh

configure {
	move ${workpath}/MediaInfo_CLI_GNU_FromSource ${workpath}/MediaInfo_CLI_${version}_GNU_FromSource
}

destroot {
	system "cd ${worksrcpath}/MediaInfo/Project/GNU/CLI && make install DESTDIR=${destroot}"
}
